<?php
class Answer_Component_Controller_Admincp_Import extends Phpfox_Component {
    public function process() {
        $sLink = "admincp.answer.category";
        if ($this->request()->get('import') ) {
            Phpfox::getService('answer.sample')->import();
            $this->url()->send($sLink,array(),Phpfox::getPhrase('answer.import_sample_categories_successfully'));
        }
        $this->template()
            ->setBreadcrumb(Phpfox::getPhrase('answer.import_sample_data'));
    }
}